/*
 * Copyright 2010 J Patrick Davenport
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package v4view.web;

/**
 * Represents the possible mouse events available on some element of the HTML DOM.
 * @author J Patrick Davenport
 *
 * @param <T> any page element that wants to support some or all of this interface.
 */
public interface IMouseEvents<T extends PageElement> {
	public static final String	ON_MOUSECLICK_EVENT_KEY		= "onclick";
	public static final String	ON_MOUSEDBLCLICK_EVENT_KEY	= "ondbclick";
	public static final String	ON_MOUSEDOWN_EVENT_KEY		= "onmousedown";
	public static final String	ON_MOUSEMOVE_EVENT_KEY		= "onmousemove";
	public static final String	ON_MOUSEUP_EVENT_KEY		= "onmouseup";
	public static final String	ON_MOUSEOUT_EVENT_KEY		= "onmouseout";
	public static final String	ON_MOUSEOVER_EVENT_KEY		= "onmouseover";

	public T setOnClick(final String _scriptlet);

	public T setOnDblClick(final String _scriptlet);

	public T setOnMouseDown(final String _scriptlet);

	public T setOnMouseMove(final String _scriptlet);

	public T setMouseOut(final String _scriptlet);

	public T setMouseOver(final String _scriptlet);

	public T setMouseUp(final String _scriptlet);

	public String getOnClick();

	public String getOnDblClick();

	public String getOnMouseDown();

	public String getOnMouseMove();

	public String getMouseOut();

	public String getMouseOver();

	public String getMouseUp();

}
